<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
	</head>
	<style>
		.ting{color: pink;}
		.li{color: black;}
	</style>
	<body>
		<div id="app">
			<p v-bind:class="yy"   //绑定属性 
			v-on:mouseover="mouseover" v-on:mouseout="mouseout"> //鼠标悬浮
			我只是一个小小的石头</p>
		</div>
		
		<script>
			let app =new Vue({
				el:"#app",
				data:{
					yy:"ting" 
				},
				methods:{
					mouseover:function(){
						this.yy ="ting";
					},
					mouseout:function(){
						this.yy ="li";
					}
				}
			});
		</script>
	</body>
</html>
